home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / SLAX 6.0.8 / slax-6.0.8.iso / slax / base / 006-devel.lzm / usr / include / kofficeversion.h < prev    next >
Encoding:
C/C++ Source or Header  |  2007-05-30  |  2.8 KB  |  87 lines

  1. /* This file is part of the KOffice libraries
  2.     Copyright (c) 2003 David Faure <faure@kde.org>
  3.     Copyright (c) 2003 Lukas Tinkl <lukas@kde.org>
  4.     Copyright (c) 2004 Nicolas Goutte <goutte@kde.org>
  5.  
  6.     This library is free software; you can redistribute it and/or
  7.     modify it under the terms of the GNU Library General Public
  8.     License as published by the Free Software Foundation; either
  9.     version 2 of the License, or (at your option) any later version.
  10.  
  11.     This library is distributed in the hope that it will be useful,
  12.     but WITHOUT ANY WARRANTY; without even the implied warranty of
  13.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  14.     Library General Public License for more details.
  15.  
  16.     You should have received a copy of the GNU Library General Public License
  17.     along with this library; see the file COPYING.LIB.  If not, write to
  18.     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  19.  * Boston, MA 02110-1301, USA.
  20. */
  21.  
  22. #ifndef _KOFFICE_VERSION_H_
  23. #define _KOFFICE_VERSION_H_
  24.  
  25. // Remmber to synchronize the version number with the file(s):
  26. // - koffice/configure.in.in
  27. //
  28. // NOT synchronized are:
  29. // - karbon/karbon_aboutdata.h
  30. //
  31.  
  32. #define KOFFICE_VERSION_STRING "1.6.3"
  33. #define KOFFICE_VERSION_MAJOR 1
  34. #define KOFFICE_VERSION_MINOR 6
  35. #define KOFFICE_VERSION_RELEASE 3
  36. #define KOFFICE_MAKE_VERSION( a,b,c ) (((a) << 16) | ((b) << 8) | (c))
  37.  
  38. #define KOFFICE_VERSION \
  39.   KOFFICE_MAKE_VERSION(KOFFICE_VERSION_MAJOR,KOFFICE_VERSION_MINOR,KOFFICE_VERSION_RELEASE)
  40.  
  41. #define KOFFICE_IS_VERSION(a,b,c) ( KOFFICE_VERSION >= KOFFICE_MAKE_VERSION(a,b,c) )
  42.  
  43. /**
  44.  * Namespace for general KOFFICE functions.
  45.  */
  46. namespace KOffice
  47. {
  48.     /**
  49.      * Returns the encoded number of KOffice's version, see the KOFFICE_VERSION macro.
  50.      * In contrary to that macro this function returns the number of the actually
  51.      * installed KOffice version, not the number of the KOffice version that was
  52.      * installed when the program was compiled.
  53.      * @return the version number, encoded in a single uint
  54.      * @since 1.3
  55.      */
  56.     unsigned int version();
  57.     /**
  58.      * Returns the major number of KOffice's version, e.g.
  59.      * 1 for KOffice 1.2.3.
  60.      * @return the major version number
  61.      * @since 1.3
  62.      */
  63.     unsigned int versionMajor();
  64.     /**
  65.      * Returns the minor number of KOffice's version, e.g.
  66.      * 2 for KOffice 1.2.3.
  67.      * @return the minor version number
  68.      * @since 1.3
  69.      */
  70.     unsigned int versionMinor();
  71.     /**
  72.      * Returns the release of KOffice's version, e.g.
  73.      * 3 for KOffice 1.2.3.
  74.      * @return the release number
  75.      * @since 1.3
  76.      */
  77.     unsigned int versionRelease();
  78.     /**
  79.      * Returns the KOffice version as string, e.g. "1.2.3".
  80.      * @return the KOffice version. You can keep the string forever
  81.      * @since 1.3
  82.      */
  83.     const char *versionString();
  84. }
  85.  
  86. #endif // _KOFFICE_VERSION_H_
  87.